import api from "./index";

// 登录相关接口
export default {
	// 账号登录方法
	login: (params) => api.post("/login", params),
	// 用户一键登录
	loginOpenid: (params) => api.post("/loginOpenid", params),
	// 绑定
	binding: (params) => api.post("/binding", params),
	// 退出登录
	logout: () => api.post("/logout"),

     
	//微信一键登录
	weChatLogin: (params) => api.post("/applet/weChatLogin", params),
	//获取用户信息
	getUserInfo:  (params) => api.get("/applet/getInfo", params),
	//修改用户头像昵称
	setUserInfo: (params) => api.post('/applet/updateUserInfo',params) 
};